<?php
namespace app\index\controller;
use think\Db;

class Interfaces
{
    public  function  getsynchronizationUser(){
       $this->synchronizationUser();
    }
    public  function  synchronizationUser(){//同步用户表
        exit;
        $paArr=db::query("select * from pengai_user where FLocalNum>0");
        foreach($paArr as $key=>$value){
            if($value['name']){
                db::execute("update raCall_user set name='{$value['department']}',department='{$value['name']}' where FLocalNum='{$value['FLocalNum']}'");
            }
        }
    }
}